{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>公司首页</title>
    <link rel="icon" href="{% static '/denwei/img/logo.ico' %}" type="image/x -icon">
    <link rel="stylesheet" href="{% static '/denwei/css/swiper.min.css' %}">
    <script src="{% static '/denwei/js/jquery.min.js' %}"></script>
    <script src="{% static '/denwei/js/swiper.min.js' %}"></script>
    <style type="text/css">
        .swiper-container {
            width: 90%;
{#            height: 300px;#}
{#            text-align: center;#}
            }
        img{
            width: 100%;
        }
    </style>
</head>
<body>
<div class="swiper-container">
    <div class="swiper-wrapper">
        <div class="swiper-slide"><img src="{% static 'denwei/img/index_01.jpg' %}" alt="..."></div>
        <div class="swiper-slide"><img src="{% static 'denwei/img/index_02.jpg' %}" alt="..."></div>
        <div class="swiper-slide"><img src="{% static 'denwei/img/index_03.jpg' %}" alt="..."></div>
        <div class="swiper-slide"><img src="{% static 'denwei/img/index_04.jpg' %}" alt="..."></div>
        <div class="swiper-slide"><img src="{% static 'denwei/img/index_05.jpg' %}" alt="..."></div>
    </div>
    <!-- Add Pagination -->
    <div class="swiper-pagination"></div>
    <!-- Add Arrows -->
    <div class="swiper-button-next"></div>
    <div class="swiper-button-prev"></div>
</div>
<script>
    var swiper = new Swiper('.swiper-container', {
        pagination: '.swiper-pagination',
        nextButton: '.swiper-button-next',
        prevButton: '.swiper-button-prev',
        paginationClickable: true,
        spaceBetween: 30,
        centeredSlides: true,
        autoplay: 1500,
        autoplayDisableOnInteraction: false,
        loop : true
    });
{#    鼠标悬停，停止播放。#}
    $('.swiper-wrapper').mouseenter(function () {
        swiper.stopAutoplay();
    });
    $('.swiper-wrapper').mouseleave(function () {
        swiper.startAutoplay();
    })
</script>
</body>
</html>